package tdt4240.iddqd.camera;

import org.anddev.andengine.engine.camera.SmoothCamera;

import tdt4240.iddqd.GameActivity;

public class GameCamera extends SmoothCamera {

	private GameHud hud;

	public GameCamera(){
		super(0, 0, GameActivity.CAMERA_WIDTH, GameActivity.CAMERA_HEIGHT, 150, 150, 1);
	}

	public void createHUD(){
		hud = new GameHud();
		this.setHUD(hud);
	}

	/**
	 * Update health display
	 * @param health Remaining health
	 */
	public void updateHealthDisplay(int health){
		hud.updateHealth(health);
	}

}
